<div class="pz-block pz-block-newsDetail {{$blockParams.css}}">
    {{if $blockParams.showTopNav}}
    <div class="nav nav-top">
        <a href="{{$page->getCompleteUrl()}}" class="back-to-news-list" ><span>{{t}}back to list{{/t}}</span></a>
        <span class="page-navigation">
        {{if isset($news.1)}}
        <a href="{{$news.1.url}}" class="next-news"><span>{{t}}next{{/t}}</span></a>
        {{/if}}
        {{if isset($news.2)}}
        <a href="{{$news.2.url}}" class="previous-news"><span>{{t}}previous{{/t}}</span></a>
        {{/if}}
        </span>
    </div>
    {{/if}}

    {{if $blockParams.detailDisplayTitle}}
    <h1 class="title">{{$news.0.news->getLabel()}}</h1>
    {{/if}}
    
    {{if $blockParams.detailDisplaySubTitle && !is_null($news.0.news->getEventDates()) && $news.0.news->getEventDates() != ''}}
    <h2 class="subTitle">{{$news.0.news->getEventDates()}}</h2>
    {{/if}}
    
    {{if $blockParams.detailDisplayDate || $blockParams.detailDisplayAuthor}}
        <div class="meta">
            {{if $blockParams.detailDisplayAuthor}}
                <span class="author">
                    {{assign var='author' value=$news.0.news->getAuthor()|fullname}}
                    {{t 1=$author}}By %s{{/t}}
                </span>
            {{/if}}
            {{if $blockParams.detailDisplayDate && $blockParams.detailDisplayAuthor}} - {{/if}}
            {{if $blockParams.detailDisplayDate}}
                <span class="date">
                    {{date date=$news.0.news->getModificationDate()}} ({{$news.0.news->getModificationDate()|since}})
                </span>
            {{/if}}
        </div>
    {{/if}}

    {{if $news.0.news->getPictureUrl($blockParams.picWidthDetail,$blockParams.picHeightDetail) != ''}}
    <img src="{{$news.0.news->getPictureUrl($blockParams.picWidthDetail,$blockParams.picHeightDetail)}}" title="{{$news.0.news->getLabel()}}" class="picture" />
    {{/if}}

    <div class="news-content">
            {{eval var=$news.0.news->getContent()}}
    </div>

    {{if $blockParams.showBottomNav}}
    <div class="nav nav-bottom">
        <a href="{{$page->getCompleteUrl()}}" class="back-to-news-list" ><span>{{t}}back to list{{/t}}</span></a></li>
        <span class="page-navigation">
        {{if isset($news.1)}}
            <a href="{{$news.1.url}}" class="next-news"><span>{{t}}next{{/t}}</span></a>
        {{/if}}
        {{if isset($news.2)}}
            <a href="{{$news.2.url}}" class="previous-news"><span>{{t}}previous{{/t}}</span></a>
        {{/if}}
        </span>
    </div>
    {{/if}}
</div>